﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using 基于WPF的电缆采样数据分析系统.ViewModels.TDRWork.TaskPage;

namespace 基于WPF的电缆采样数据分析系统.Views.TDRWork.TaskPage
{
    /// <summary>
    /// CalculatorTaskUC.xaml 的交互逻辑
    /// </summary>
    public partial class CalculatorTaskUC : UserControl
    {
        public CalculatorTaskUC()
        {
            InitializeComponent();

            this.DataContext = CalculatorTaskUCViewModel.Instance;
        }

        #region 计算值
        public string ComputeValue
        {
            get { return (string)GetValue(ComputeValueProperty); }
            set { SetValue(ComputeValueProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ComputeValue.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ComputeValueProperty =
            DependencyProperty.Register("ComputeValue", typeof(string), typeof(CalculatorTaskUC), new PropertyMetadata(default(string)));
        #endregion


        #region 单位值
        public string UnitValue
        {
            get { return (string)GetValue(UnitValueProperty); }
            set { SetValue(UnitValueProperty, value); }
        }

        // Using a DependencyProperty as the backing store for UnitValue.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty UnitValueProperty =
            DependencyProperty.Register("UnitValue", typeof(string), typeof(CalculatorTaskUC), new PropertyMetadata(default(string)));

        #endregion
    }
}
